html,
body {
  height: 100%;
}

.two-line {
  overflow: hidden;
  display: -webkit-box;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
}

#app {
  height: 100%;
  padding: 30px;
  background-color: #eff1f7;

  .empty-box {
    text-align: center;
    height: 200px;
    line-height: 200px;
  }

  .divider-title {
    display: flex;
    align-items: center;

    .divider-lt {
      width: 50px;
      height: 1px;
      background-color: #e4e7ed;
    }

    .title {
      margin: 20px 10px;
      color: #303133;
    }

    .divider-rt {
      flex: 1;
      height: 1px;
      background-color: #e4e7ed;
    }
  }

  .select-box {
    .custom-select {
      position: relative;
      display: inline-block;
      padding: 20px 0;

    }

    .custom-select select {
      display: none;
    }

    .custom-select:hover .options {
      display: block;
    }

    .custom-select .select-box {
      display: flex;
      align-items: center;
      background-color: #fff;
      width: 200px;

      border-radius: 20px;
      margin: 0 15px;
      padding: 10px 20px;

      input {
        margin-left: 6px;
        border: none;
        height: 100%;
        outline: none;
        background-color: #fff;
      }
    }

    .custom-select .options {
      position: absolute;
      top: 100%;
      left: 10px;
      z-index: 9;
      background-color: #fff;
      border: 1px solid #ccc;
      border-radius: 10px;
      padding: 10px;
      min-width: 220px;
      max-height: 400px;
      overflow-y: auto;
      display: none;

      .option-item {
        margin-bottom: 10px;
      }
    }

    .custom-select .options.show {
      display: block;
    }

    select {
      margin: 0 20px;
      min-width: 120px;
      padding: 5px 10px;
      border: 1px solid #e4e7ed;

      option {
        padding: 5px 10px;
      }
    }


  }

  main {
    display: flex;
    flex-wrap: wrap;

    .table-wrapper {
      box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .05);
      background: #ececf1;
      padding: 5px;
    }

    .left {
      flex: 1;

      .pagination-wrapper {
        display: flex;
          align-items: center;
        justify-content: flex-end;
      }

      .pagination {
        display: flex;
        justify-content: flex-end;
        list-style: none;
        padding: 2px 20px;
        border-radius: 1.5rem;
        box-shadow: 0 3px 1px -2px rgba(0, 0, 0, .05), 0 2px 2px 0 rgba(0, 0, 0, .05), 0 1px 5px 1px rgba(0, 0, 0, .05) !important;
      }

      .pagination li {
          margin-right: 5px;
          display: flex;
          align-items: center;
          cursor: pointer;
      }

      .pagination a {
          display: block;
          padding: 5px 10px;
          text-decoration: none;
          z-index: 3;
          border-radius: 5rem;
          // background-color: #e9e9e9;
          color: #333;
          transform: scale(1.05);
      }
        .icon-next {
            display: none;
        }
      .pagination a:hover {
          background-color: #586cb1;
          color: #fff;
      }

      .pagination .active a {
        background-color: #586cb1;
        color: #fff;
      }

        .next-page:hover,
        .pre-page:hover {

            .icon-next {
                display: block !important;
            }

            .icon-more {
                display: none;
            }
        }
      table {
        width: 100%;
        border-collapse: collapse;
        /* 合并单元格边框 */
        // border: 1px solid #e4e7ed;

        /* 设置表格整体边框样式 */
        thead {
          th {
            padding: 10px;
            // border-right: 1px solid #e4e7ed;
          }
        }

        .tbody {
          background-color: #fff;
        }
      }

      tr {
        border-bottom: 1px solid #e4e7ed;
        /* 设置水平线 */
      }

      td {
        padding: 5px 10px;
        background-color: #fff;

        img {
          width: 50px;
          height: 30px;
        }

        button {
          width: 80px;
          background-color: #409eff;
          border: none;
          padding: 5px 10px;
          border-radius: 4px;
          color: #fff;
        }

        /* 设置垂直线 */
      }

    }

    .right {
      margin-left: 50px;
      flex: 1;

      .select-list {
        .select-item {
          display: flex;
          align-items: center;
          justify-content: space-between;
          margin-bottom: 18px;
          padding: 10px;
          background-color: #fff;
          border-radius: 5px;

          img {
            width: 36px;
            height: 36px;
          }

          .good-name {
            margin: 0 15px;
          }

          .good-num {
            border: 1px solid #e4e7ed;
            border-radius: 6px;
            padding: 10px;
            display: flex;

            .jia-jian {
              cursor: pointer;
            }

            input {
              width: 40px;
              border: none;
              text-align: center;
            }
          }
        }
      }
    }
  }

  footer {
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;

    span {
      margin-right: 30px;
    }
    input {
          padding: 10px;
          border-radius: 8px;
          border: 1px solid #e4e7ed;
          margin-right: 20px;
    }
/*
    button {
      background-color: #fff;
      color: #586cb1;
      border: 1px solid #586cb1;
      padding: 10px 20px;
      border-radius: 4px;
      display: flex;
      align-items: center;
    }
 */
  }

  .dialog {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.3);

    .dialog-content {
      margin-top: 20%;
      width: 700px;
      height: 400px;
      background-color: #fff;

      .dialog-title {
        padding: 20px;
        font-size: 20px;
      }

      .dialog-body {
        padding: 20px;

        label {
          display: inline-block;
          width: 120px;
        }

        .form-item {
          margin-bottom: 20px;
        }

        select {
          padding: 5px 10px;
          border-radius: 8px;
        }

        input {
          padding: 5px 10px;
          border-radius: 8px;
        }
      }

      .dialog-footer {
        padding: 20px;
        text-align: right;

        button {
          padding: 10px 30px;
          border-radius: 8px;
          border: none;
        }

        .confirm {
          background-color: #409eff;
          color: #fff;
        }
      }
    }
  }
}
